function fHoliday(y,m,d) {
		if (gdCtrl == parent.document.dateform.bth_date || gdCtrl == parent.document.dateform.hire_date || gdCtrl == parent.document.dateform.dob_date || gdCtrl == parent.document.dateform.nc_dob || gdCtrl == parent.document.dateform.nc_hire) {
			var mydate = "";
			var mes = "";
			}
		else {
			var mydate = "";
			var mes = "";
			}

	var r=fGetEvent(y,m,d);
	if (r) return r;

	    var dom=new Date(y,m-1,d).getDay();
		if (dom==0) r=["Sunday "+d+", "+y+" "+mes+" ",mydate,"#666666","red"];
		else if (dom==6) r=["Saturday "+d+", "+y+" "+mes+" ",mydate,"#666666","red"]

	if (m==1&&d==1)
		r=[" Jan 1, "+y+" \n Happy New Year! ",mydate,"#999999","red"];
	else if (m==12&&d==25)
		r=[" Dec 25, "+y+" \n Merry X'mas! ",mydate,"#999999","red"];
	else if (m==12&&d==26)
		r=[" Dec 26, "+y+" \n Boxing Day ",mydate,"#999999","red"];	// Boxing Day, December 26th

	else if (m==6&&d==24)
		r=[" June 24, "+y+" \n Quebec National Day ","","#999999","red"];
	
	else if (m==7&&d==1)
		r=[" July 1, "+y+" \n Canada Day ",mydate,"#999999","red"];	// Canada Day

	else if (m==11&&d==11)
		r=[" November 11, "+y+" \n Remembrance Day ",mydate,"#999999","red"];	// Remembrance Day, November 11th

	else if (m==5&&d>17) {
		var dom=new Date(y,4,25).getDay();
		if (dom==0) dom=7;
       	var date=26-dom;
        if (d==date) r=["March "+d+", "+y+"  Victoria Day ",mydate,"#999999","red"];
	}

	else if (m==8&&d<8) {
		var date=getDateByDOW(y,8,1,1);	// British Columbia Day, first Monday of August
		if (d==date) r=["August "+d+", "+y+"  British Columbia Day ","","#999999","red"];
	}

	else if (m==9&&d<8) {
		var date=getDateByDOW(y,9,1,1);	// Labor Day, first Monday of September
		if (d==date) r=["September "+d+", "+y+"  Labor Day ",mydate,"#999999","red"];
	}
	
	else if (m==10&&d<15) {
		var date=getDateByDOW(y,10,2,1);	// Thanksgiving Day, 2nd Monday in October
		if (d==date) r=["October "+d+", "+y+"  Thanksgiving Day ",mydate,"#999999","red"];
	}


	return r;
}

function getDateByDOW(y,m,q,n) {
	var dom=new Date(y,m-1,1).getDay();
	var d=7*q-6+n-dom;
	if (dom>n) d+=7;
	if (d>fGetDays(y)[m]) d-=7;
	return d;
}
